namespace = Lulu

# Family interactions
#201 Genius
#203 Ugly-ish
#210 Stutter and Lisp
#214 Shrewd and Adultery
#224 Slow or Imbecile
#237 Checkers
character_event = {
	id = Lulu.201
	desc = "EVTDESCLulu.201"
	picture = "GFX_evt_Luluchessboard"
	
	capable_only = yes
	is_triggered_only = yes
	lacks_dlc = "Conclave"

	trigger = {
		NOT = { trait = genius }
		NOT = { trait = quick }
		prisoner = no
		in_command = no
		any_child = { 
			age = 6
			NOT = { age  = 16 }
			trait = genius
			prisoner = no
		}
	}

	immediate = {
		any_child = {
			limit = {
				trait = genius
				prisoner = no
				age = 6
				NOT = { age  = 16 }
				}
			save_event_target_as = target_child
		}
	}
		
	option = {
		name = "EVTOPTALulu.201"
		event_target:target_child = {
			reverse_opinion = { modifier = opinion_thoroughly_impressed who = FROM months = 6 }
			}

	}
	option = {
		name = "EVTOPTBLulu.201"
			trigger = { trait = paranoid }
		event_target:target_child = {
			reverse_opinion = { modifier = opinion_worried who = FROM months = 6 }
			}
		character_event = { id = Lulu.202 days = 10 tooltip = "EVTTOOLTIPLulu.202" }
	}
}

character_event = {
	id = Lulu.202
	desc = "EVTDESCLulu.202"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.202"
		event_target:target_child = {
			opinion = { modifier = opinion_pitiful who = ROOT months = 6 }
			reverse_opinion = { modifier = opinion_abomination who = FROM months = 60 }
			}
	}
	option = {
		name = "EVTOPTBLulu.202"
		event_target:target_child = {
			imprison = ROOT
			}
	}
}

character_event = {
	id = Lulu.203
	desc = "EVTDESCLulu.203"
	picture = "GFX_evt_Lulufamilyportrait"
	
	is_triggered_only = yes
	capable_only = yes
	lacks_dlc = "Conclave"

	trigger = {
		NOT = { trait = ugly
			trait = dwarf
			trait = harelip
			trait = hunchback
			}
		prisoner = no
		in_command = no
		any_child = { 
			age = 6
			NOT = { age  = 16 }
			OR = { trait = ugly
				trait = dwarf
				trait = harelip
				trait = hunchback
				}
			prisoner = no
		}
	}

	immediate = {
		any_child = {
			limit = {
				is_child_of = ROOT
				OR = { trait = ugly
				trait = dwarf
				trait = harelip
				trait = hunchback
					}
				prisoner = no
				}
			save_event_target_as = target_child
		}
	}
		
	option = {
		name = "EVTOPTALulu.203"
			trigger = { 
				NOR = { trait = proud
					trait = envious
					trait = ambitious
					}
				}
		character_event = { id = Lulu.204 days = 30 tooltip = "EVTTOOLTIPLulu.204" }
		treasury = -1
	}	
	option = {
		name = "EVTOPTBLulu.203"
		character_event = { id = Lulu.205 days = 30 tooltip = "EVTTOOLTIPLulu.204" }
		treasury = -1
	}
	option = {
		name = "EVTOPTCLulu.203"
			trigger = { 
				OR = { trait = proud
					trait = envious
					trait = ambitious
					}
				}
		character_event = { id = Lulu.206 days = 30 tooltip = "EVTTOOLTIPLulu.204" }
		treasury = -1
	}
	option = {
		name = "EVTOPTDLulu.203"
			trigger = { 
				trait = humble
					}
		piety = 1
	}
}

character_event = {
	id = Lulu.204
	desc = "EVTDESCLulu.204"
	picture = GFX_evt_Lulufamilyportrait
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.204"
		event_target:target_child = {
			opinion = { modifier = opinion_relieved who = ROOT months = 36 }
			}
		prestige = 1
	}
}

character_event = {
	id = Lulu.205
	desc = "EVTDESCLulu.205"
	picture = GFX_evt_Lulufamilyportrait
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.205"
		prestige = 2
	}
}

character_event = {
	id = Lulu.206
	desc = "EVTDESCLulu.206"
	picture = GFX_evt_Lulufamilyportrait
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.206"
		event_target:target_child = {
			opinion = { modifier = opinion_angry who = ROOT months = 36 }
			hidden_tooltip = { character_event = { id = Lulu.207 days = 7 }}
			}
		prestige = 2
	}
}

character_event = {
	id = Lulu.207
	desc = "EVTDESCLulu.207"
	picture = GFX_evt_Lulufamilyportrait
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.207"
			trigger = {
				any_sibling = { trait = fair }
				}
			if = {
				limit = {
					NOT = { trait = wroth }
				}
				random = {
					chance = 10
					add_trait = wroth
				}
			}
			if = {
				limit = {
					NOT = { trait = envious }
				}
				random = {
					chance = 10
					add_trait = envious
				}
			}
			if = {
				limit = {
					OR = { trait = deceitful
						trait = envious
						trait = cruel
						trait = wroth
						}
					}
				any_sibling = {
					limit = { has_trait = fair }
					opinion = { modifier = opinion_angry who = ROOT months = 36 }
					}
				FROM = { character_event = { id = Lulu.208 }}
			}
	}

	option = {
		name = "EVTOPTBLulu.207"
			trigger = {
				 NOT = { any_sibling = { trait = fair }}
				}
			if = {
				limit = {
					NOT = { trait = wroth }
				}
				random = {
					chance = 10
					add_trait = wroth
				}
			}
			if = {
				limit = {
					NOT = { trait = envious }
				}
				random = {
					chance = 10
					add_trait = envious
				}
			}
			if = {
				limit = {
					OR = { trait = deceitful
						trait = envious
						trait = cruel
						trait = wroth
						}
				}
				FROM = { character_event = { id = Lulu.209 }}
			}
	}
}

character_event = {
	id = Lulu.208
	desc = "EVTDESCLulu.208"
	picture = GFX_evt_Lulufamilyportrait
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.208"
			opinion = { modifier = opinion_angry who = FROM months = 36 }
	}
}

character_event = {
	id = Lulu.209
	desc = "EVTDESCLulu.209"
	picture = GFX_evt_Lulufamilyportrait
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.209"
			opinion = { modifier = opinion_angry who = FROM months = 36 }
	}
}

character_event = {
	id = Lulu.210
	desc = "EVTDESCLulu.210"
	picture = "GFX_evt_child_play"
	
	is_triggered_only = yes
	capable_only = yes
	lacks_dlc = "Conclave"

	trigger = {
		NOT = { trait = lisp
			trait = stutter
			}
		prisoner = no
		in_command = no
		any_child = { 
			age = 6
			NOT = { age  = 16 }
			OR = { trait = lisp
				trait = stutter
				}
			prisoner = no
		}
	}

	immediate = {
		any_child = {
			limit = {
				is_child_of = ROOT
				OR = { trait = lisp
				trait = stutter
					}
				prisoner = no
				}
			save_event_target_as = target_child
		}
	}
		
	option = {
		name = "EVTOPTALulu.210"
		character_event = { id = Lulu.211 days = 30 tooltip = "EVTTOOLTIPLulu.210" }
	}	
	option = {
		name = "EVTOPTBLulu.210"
		character_event = { id = Lulu.212 days = 15 tooltip = "EVTTOOLTIPLulu.210" }
	}
	option = {
		name = "EVTOPTCLulu.210"
		character_event = { id = Lulu.213 days = 7 tooltip = "EVTTOOLTIPLulu.210" }
	}
	option = {
		name = "EVTOPTDLulu.210"
			trigger = { 
				trait = patient
					}
		piety = 1
	}
}

character_event = {
	id = Lulu.211
	desc = "EVTDESCLulu.211"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	immediate = { 		
			random = {
				chance = 5
				event_target:target_child = { remove_trait = stutter }
			}
		}

	option = {
		name = "EVTOPTALulu.211"
			trigger = {
				event_target:target_child = { NOT = { trait = stutter }}
				}
	}
	option = {
		name = "EVTOPTBLulu.211"
	}
}

character_event = {
	id = Lulu.212
	desc = "EVTDESCLulu.212"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	immediate = { 		
			random = {
				chance = 15
				event_target:target_child = { add_trait = wounded }
			}
		}

	option = {
		name = "EVTOPTALulu.212"
			trigger = {
				event_target:target_child = { trait = wounded }
				}
	}
	option = {
		name = "EVTOPTBLulu.212"
	}
}

character_event = {
	id = Lulu.213
	desc = "EVTDESCLulu.213"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.213"
	}
}

# Child Inquiry
character_event = {
	id = Lulu.214
	desc = "EVTDESCLulu.214"
	picture = "GFX_evt_child_play"
	
	is_triggered_only = yes
	capable_only = yes
	lacks_dlc = "Conclave"

	trigger = {
		is_married = yes
		num_of_spouses = 1
		has_lover = yes
		prisoner = no
		in_command = no
		any_child = { 
			age = 6
			NOT = { age  = 14 }
			trait = shrewd
			prisoner = no
		}
	}

	immediate = {
		any_child = {
			limit = {
				is_child_of = ROOT
				trait = shrewd
				prisoner = no
				}
			save_event_target_as = target_child
		}
		random_lover = {
			limit = {
				prisoner = no
				is_abroad = no
				}
			save_event_target_as = lover_shrewdchild
		}
	}
		
	option = {
		name = "EVTOPTALulu.214"
		trigger = {
			trait = honest 
			}
			random = {
				chance = 5
				event_target:target_child = { add_trait = cynical }
			}
			hidden_tooltip = {
				random = {
				chance = 40
				event_target:target_child = { character_event = { id = Lulu.215 days = 5 }}
				}
			}
	}	
	option = {
		name = "EVTOPTBLulu.214"
		trigger = {
			trait = deceitful 
			}
			hidden_tooltip = {
				random = {
				chance = 10
				event_target:target_child = { character_event = { id = Lulu.215 days = 5 }}
				}
			}
	}
	option = {
		name = "EVTOPTCLulu.214"
		trigger = {
			trait = paranoid 
			}
			if = {
				limit = { NOT = { trait = stressed }}
			random = {
				chance = 10
				add_trait = stressed
				}
			}
			hidden_tooltip = {
				random = {
				chance = 25
				event_target:target_child = { character_event = { id = Lulu.215 days = 5 }}
				}
			}
			event_target:target_child = { opinion = { modifier = opinion_confused who = ROOT months = 12 }}
	}
	option = {
		name = "EVTOPTDLulu.214"
			event_target:target_child = { opinion = { modifier = opinion_confused who = ROOT months = 12 }}
			hidden_tooltip = {
				random = {
				chance = 100
				event_target:target_child = { character_event = { id = Lulu.215 days = 5 }}
				}
			}
	}
}

#Child thinking
character_event = {
	id = Lulu.215
	desc = "EVTDESCLulu.215"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.215"
		trigger = {
			opinion = { who = FROM value = 100 }
		}
	}
	option = {
		name = "EVTOPTBLulu.215"
		trigger = {
			opinion = { who = FROM value = 0 }
			NOT = { opinion = { who = FROM value = 100 }}
		}
		if = {
			limit = { FROM = { is_female = yes }}
				random = {
				chance = 33
				father = { character_event = { id = Lulu.216 days = 3 }}
				}
		}
		if = {
			limit = { FROM = { is_female = no }}
				random = {
				chance = 33
				mother = { character_event = { id = Lulu.216 days = 3 }}
			}
		}
	}
	option = {
		name = "EVTOPTCLulu.215"
		trigger = {
			NOT = { opinion = { who = FROM value = 0 }}
		}
		if = {
			limit = { FROM = { is_female = yes }}
				random = {
				chance = 80
				father = { character_event = { id = Lulu.216 days = 3 }}
				}
		}
		if = {
			limit = { FROM = { is_female = no }}
				random = {
				chance = 80
				mother = { character_event = { id = Lulu.216 days = 3 }}
			}
		}
	}
}

#Innocent parent thinking
character_event = {
	id = Lulu.216
	desc = EVTDESCLulu.216

	picture = GFX_evt_quarrel
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.216" #Do nothing
		trigger = { NOT = { trait = paranoid }}
	}
	option = {
		name = "EVTOPTBLulu.216" #Fret
		if = {
			limit = { trait = trusting }
			random = { chance = 10 remove_trait = trusting }
		}
		spouse = {
		reverse_opinion = { modifier = opinion_suspected_adultery who = ROOT years = 1 }
		}
	}
	option = {
		name = "EVTOPTCLulu.216" #Confront
		trigger = {
			NOT = { trait = trusting }
			}
		spouse = {
			character_event = { id = Lulu.217 }
		}
	}
}

#Between spouses - cheater is root here
character_event = {
	id = Lulu.217
	picture = GFX_evt_quarrel
	
	is_triggered_only = yes
	
	desc = EVTDESCLulu.217
	
	option = {
		name = EVTOPTALulu.217 # Confess and ask forgiveness (break up with lover)
		FROM = { character_event = { id = Lulu.218 days = 2 }} # To Innocent
		event_target:lover_shrewdchild = { reverse_opinion = { modifier = opinion_humiliated_me who = FROM years = 10 }}
		event_target:lover_shrewdchild = { character_event = { id = Lulu.219 tooltip = "EVTTOOLTIPLulu.219" }} # Lover notified
	}
	
	option = {
		name = EVTOPTBLulu.217 # Cruelly admit
		FROM = { character_event = { id = Lulu.220 days = 2 }} # To Innocent
		event_target:lover_shrewdchild = { add_rival = FROM }
		event_target:lover_shrewdchild = { character_event = { id = Lulu.221 }} # Lover notified
	}
	
	option = {
		name = EVTOPTCLulu.217 # Lie and deny
		FROM = { character_event = { id = Lulu.222 days = 2 }} # To Innocent
	}
	
	option = {
		name = EVTOPTDLulu.217 # Skillfully manipulate (high intrigue)
		trigger = {
			attribute_diff = {
				attribute = intrigue
				character = FROM
				value = 5
			}
			FROM = {
				NOT = { has_focus = focus_intrigue }
			}
		}
		FROM = { character_event = { id = Lulu.223 days = 2 }} # To Innocent
	}
}

#Back to innocent spouse, after contrite admission
character_event = {
	id = Lulu.218
	desc = EVTDESCLulu.218

	picture = GFX_evt_quarrel
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.218" #Forgive
		opinion = {
			who = FROM
			modifier = opinion_unfaithful_private
			months = 24
		}
	}
	option = {
		name = "EVTOPTBLulu.218" #Denounce
		if = {
			limit = { FROM = { is_female = yes } }
			opinion = {
				who = FROM
				modifier = opinion_unfaithful_wife
				months = 120
			}
		}
		if = {
			limit = { FROM = { is_female = no } }

			if = {
				limit = { gender_equality_trigger = no }
				opinion = {
					who = FROM
					modifier = opinion_unfaithful_husband
					months = 120
				}
			}
			if = {
				limit = { gender_equality_trigger = yes }
				opinion = {
					who = FROM
					modifier = opinion_unfaithful_husband_crime
					months = 120
				}
			}
		}
	}
}

#Lover breakup
character_event = {
	id = Lulu.219
	desc = "EVTDESCLulu.219"
	picture = GFX_evt_quarrel
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.219"
	remove_lover = FROM
	}
}

#Back to innocent spouse, after cruel admission
character_event = {
	id = Lulu.220
	desc = EVTDESCLulu.220

	picture = GFX_evt_quarrel
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.220" #Forgive
		if = {
			limit = {
				NOT = { trait = arbitrary }
				NOT = { trait = depressed }
			}
			random = {
				chance = 20
				add_trait = depressed
			}
		}
		
		opinion = {
			who = FROM
			modifier = opinion_unfaithful_private
			months = 24
		}
	}
	option = {
		name = "EVTOPTBLulu.220" #Denounce
		if = {
			limit = { FROM = { is_female = yes } }
			opinion = {
				who = FROM
				modifier = opinion_unfaithful_wife
				months = 120
			}
		}
		if = {
			limit = { FROM = { is_female = no } }

			if = {
				limit = { gender_equality_trigger = no }
				opinion = {
					who = FROM
					modifier = opinion_unfaithful_husband
					months = 120
				}
			}
			if = {
				limit = { gender_equality_trigger = yes }
				opinion = {
					who = FROM
					modifier = opinion_unfaithful_husband_crime
					months = 120
				}
			}
		}
	}
}

#Lover still there
character_event = {
	id = Lulu.221
	desc = "EVTDESCLulu.219"
	picture = GFX_evt_quarrel
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.219"
	}
}


#Back to innocent spouse, after denial
character_event = {
	id = Lulu.222
	desc = EVTDESCLulu.222

	picture = GFX_evt_quarrel
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.222" #Doubt
			if = {
				limit = { NOT = { trait = trusting } }
				opinion = {
				who = FROM
				modifier = opinion_suspected_adultery
				months = 24
				}
			}
			if = {
				limit = { NOT = { trait = arbitrary } }
				random = {
					chance = 20
					add_trait = depressed
				}
			}
		if = {
			limit = {
				NOT = { trait = paranoid }
				NOT = { trait = trusting }
			}
			random = {
				chance = 10
				add_trait = paranoid
			}
		}
		
		if = {
			limit = { trait = trusting }
			random = {
				chance = 20
				remove_trait = trusting
			}
		}
	}
	option = {
		name = "EVTOPTBLulu.222" #Believe
		if = {
			limit = { NOT = { trait = trusting }}
			random = {
				chance = 20
				add_trait = trusting
			}
		}
	}
}

#Innocent spouse after intrigue denial
character_event = {
	id = Lulu.223
	desc = "EVTDESCLulu.223"
	picture = GFX_evt_quarrel
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.223"
		opinion = {
			who = FROM
			modifier = opinion_regrets_accusation
			months = 36
		}
	}
}

#slow or imbecile
character_event = {
	id = Lulu.224
	desc = "EVTDESCLulu.224"
	picture = "GFX_evt_child_play"
	
	capable_only = yes
	is_triggered_only = yes
	lacks_dlc = "Conclave"

	trigger = {
		NOT = { trait = slow }
		NOT = { trait = imbecile }
		prisoner = no
		in_command = no
		religion_group = christian
		any_child = { 
			age = 4
			NOT = { age  = 16 }
			OR = { 
				trait = slow
				trait = imbecile
				}
			prisoner = no
		}
	}

	immediate = {
		any_child = {
			limit = {
				OR = {
					trait = slow
					trait = imbecile
					}
				prisoner = no
				age = 4
				NOT = { age  = 16 }
				}
			save_event_target_as = target_child
		}
	}
		
	option = {
		name = "EVTOPTALulu.224"
			trigger = { piety = 10 }
		event_target:target_child = { character_event = { id = Lulu.225 days = 30 tooltip = "EVTTOOLTIPLulu.225" }}
	}
	option = {
		name = "EVTOPTBLulu.224"
			trigger = { piety = 10 }
			treasury = -5
			piety = 1
		event_target:target_child = { character_event = { id = Lulu.225 days = 30 tooltip = "EVTTOOLTIPLulu.225" }}
	}
	option = {
		name = "EVTOPTCLulu.224"
			trigger = { piety = 10 }
		event_target:target_child = { 
				character_event = { id = Lulu.225 days = 30 tooltip = "EVTTOOLTIPLulu.225" }
				set_character_flag = to_be_exorcised			}
	}
	option = {
		name = "EVTOPTDLulu.224"
			trigger = { 
				OR = { 
				NOT = { trait = trusting }
				NOT = { piety = 10 }
				}
			}
	}
}

character_event = {
	id = Lulu.225
	desc = "EVTDESCLulu.225"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.225"
	FROM = { character_event = { id = Lulu.226 }}
	}
	option = {
		name = "EVTOPTBLulu.225"
		if = {
			limit = { NOT = { trait = stressed }}
		random = {
			chance = 25
			add_trait = stressed
			}
		}	
	FROM = { character_event = { id = Lulu.226 }}
	}
}

character_event = {
	id = Lulu.226
	desc = {
  	trigger = {
    	event_target:target_child = { 
			has_character_flag = to_be_exorcised
			trait = stressed
			}
  	}
  	text = EVTDESCLulu.226A
	}

	desc = {
  	trigger = {
    	NOT = { has_character_flag = to_be_exorcised }
  	}
  	text = EVTDESCLulu.226B
	}
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.226"
	clr_character_flag = to_be_exorcised
	}
}

#slow or imbecile
character_event = {
	id = Lulu.227
	desc = "EVTDESCLulu.227"
	picture = "GFX_evt_child_play"
	
	capable_only = yes
	is_triggered_only = yes
	lacks_dlc = "Conclave"

	trigger = {
		NOT = { trait = slow }
		NOT = { trait = imbecile }
		prisoner = no
		in_command = no
		religion_group = muslim
		any_child = { 
			age = 4
			NOT = { age  = 16 }
			OR = { 
				trait = slow
				trait = imbecile
				}
			prisoner = no
		}
	}

	immediate = {
		any_child = {
			limit = {
				OR = {
					trait = slow
					trait = imbecile
					}
				prisoner = no
				age = 4
				NOT = { age  = 16 }
				}
			save_event_target_as = target_child
		}
	}
		
	option = {
		name = "EVTOPTALulu.227"
			trigger = { piety = 10 }
		event_target:target_child = { character_event = { id = Lulu.228 days = 30 tooltip = "EVTTOOLTIPLulu.225" }}
	}
	option = {
		name = "EVTOPTBLulu.227"
			trigger = { piety = 10 }
			treasury = -5
			piety = 1
		event_target:target_child = { character_event = { id = Lulu.228 days = 30 tooltip = "EVTTOOLTIPLulu.225" }}
	}
	option = {
		name = "EVTOPTCLulu.227"
			trigger = { piety = 10 }
		event_target:target_child = { 
				character_event = { id = Lulu.228 days = 30 tooltip = "EVTTOOLTIPLulu.225" }
				set_character_flag = to_be_exorcised			}
	}
	option = {
		name = "EVTOPTDLulu.227"
			trigger = { 
				OR = { 
				NOT = { trait = trusting }
				NOT = { piety = 10 }
				}
			}
	}
}

character_event = {
	id = Lulu.228
	desc = "EVTDESCLulu.228"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.228"
	FROM = { character_event = { id = Lulu.229 }}
	}
	option = {
		name = "EVTOPTBLulu.228"
		if = {
			limit = { NOT = { trait = stressed }}
		random = {
			chance = 25
			add_trait = stressed
			}
		}	
	FROM = { character_event = { id = Lulu.229 }}
	}
}

character_event = {
	id = Lulu.229
	desc = {
  	trigger = {
    	event_target:target_child = { 
			has_character_flag = to_be_exorcised
			trait = stressed
			}
  	}
  	text = EVTDESCLulu.229A
	}

	desc = {
  	trigger = {
    	NOT = { has_character_flag = to_be_exorcised }
  	}
  	text = EVTDESCLulu.229B
	}
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.229"
	clr_character_flag = to_be_exorcised
	}
}

#Idiot Cage
character_event = {
	id = Lulu.230
	desc = "EVTDESCLulu.230"
	picture = "GFX_evt_child_play"
	
	capable_only = yes
	is_triggered_only = yes
	lacks_dlc = "Conclave"

	trigger = {
		NOT = { trait = slow }
		NOT = { trait = imbecile }
		prisoner = no
		in_command = no
		}
		
	option = {
		name = "EVTOPTALulu.230"
	}
	option = {
		name = "EVTOPTBLulu.230"
			piety = 1
		character_event = { id = Lulu.231 tooltip = "EVTTOOLTIPLulu.231" }
	}
	option = {
		name = "EVTOPTCLulu.230"
			trigger = {
				OR = {
					trait = cruel 
					NOT = {
					any_child = {
						limit = {
							OR = {
								trait = slow
								trait = imbecile
								}
							}
						}
					}
				}
			}
		piety = -1
		if = {
			limit = { NOT = { trait = cruel }}
		random = { chance = 5 add_trait = cruel }
		}
	}
}

character_event = {
	id = Lulu.231
	desc = "EVTDESCLulu.231"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.231"
		treasury = -1
		}
	option = {
		name = "EVTOPTBLulu.231"
		treasury = -5	
		piety = 1
	}
	option = {
		name = "EVTOPTCLulu.231"
	}
	option = {
		name = "EVTOPTDLulu.231"
			piety = 1
		hidden_tooltip = {
			create_character = {
				random_traits = no
				dynasty = NONE
				religion = ROOT
				culture = ROOT
				age = 10
				is_female = no
				trait = imbecile
			}
		new_character = { save_event_target_as = village_idiot }
		}
		character_event = { id = Lulu.232 days = 5 }
	}
}

character_event = {
	id = Lulu.232
	desc = "EVTDESCLulu.232"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.232"
		trigger = {
			any_child = { 
				age = 4
				NOT = { age  = 16 }
				OR = { 
				trait = slow
				trait = imbecile
				}
				prisoner = no
			}
		}
		random_child = {
			limit = { 
				age = 4
				NOT = { age  = 16 }
				OR = { 
				trait = slow
				trait = imbecile
				}
				prisoner = no
				}	
		character_event = { id = Lulu.233 days = 15 tooltip = "EVTTOOLTIPLulu.233" }
		}
		treasury = -2	
	}	
	option = {
		name = "EVTOPTBLulu.232"
		treasury = -2	
	}
}

character_event = {
	id = Lulu.233
	desc = "EVTDESCLulu.233"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.233"
		event_target:village_idiot = { 
			opinion = { modifier = opinion_budding_friendship who = ROOT years = 5 }
			reverse_opinion = { modifier = opinion_budding_friendship who = FROM years = 5 }
			} 	
		FROM = { character_event = { id = Lulu.234 }}
	}
	option = {
		name = "EVTOPTBLulu.233"
		FROM = { character_event = { id = Lulu.235 }}
	}
	option = {
		name = "EVTOPTBLulu.233"
		event_target:village_idiot = { 
			opinion = { modifier = opinion_hate who = ROOT years = 5 }
			reverse_opinion = { modifier = opinion_hate who = FROM years = 5 }
			} 	
		add_trait = wounded
		FROM = { character_event = { id = Lulu.236 }}
	}
}

character_event = {
	id = Lulu.234
	desc = "EVTDESCLulu.234"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.234"
	}
}

character_event = {
	id = Lulu.235
	desc = "EVTDESCLulu.235"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.235"
	}
}

character_event = {
	id = Lulu.236
	desc = "EVTDESCLulu.236"
	picture = GFX_evt_child_play
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.236"
		event_target:village_idiot = { imprison = ROOT }
	}
	option = {
		name = "EVTOPTBLulu.236"
		event_target:village_idiot = { 
			death = {
				death_reason = death_execution_hanging
				killer = ROOT
			}
		}
	}
}

#Checkers
character_event = {
	id = Lulu.237
	desc = "EVTDESCLulu.237"
	picture = "GFX_evt_Lulucheckersboard"
	
	capable_only = yes
	is_triggered_only = yes
	lacks_dlc = "Conclave"

	trigger = {
		NOT = { trait = slow }
		NOT = { trait = imbecile }
		prisoner = no
		in_command = no
		}
		
	option = {
		name = "EVTOPTALulu.237"
		trigger = {
			spouse = {
			NOT = { trait = slow }
			NOT = { trait = imbecile }
			prisoner = no
			in_command = no
			reverse_opinion = { who = ROOT value = 25}
			}
		}
		spouse = { 
				character_event = { id = Lulu.238 tooltip = "EVTTOOLTIPLulu.237" }
				add_character_modifier = {
				name = checkerboard
				duration = 180
				hidden = yes
				}
				set_character_flag = checkersspouse
			}
				set_character_flag = checkersplayer
	}
	option = {
		name = "EVTOPTBLulu.237"
		trigger = {
			any_child = {
			age = 9 
			NOT = { trait = slow }
			NOT = { trait = imbecile }
			prisoner = no
			in_command = no
			reverse_opinion = { who = ROOT value = 25}
			}
		}
		random_child = {
			limit = { 
			age = 9 
			NOT = { trait = slow }
			NOT = { trait = imbecile }
			prisoner = no
			in_command = no
			reverse_opinion = { who = ROOT value = 25}
			}
			set_event_target_as = checkers_partner
				character_event = { id = Lulu.238 tooltip = "EVTTOOLTIPLulu.237" }
				add_character_modifier = {
				name = checkerboard
				duration = 180
				hidden = yes
				}
				set_character_flag = checkerschild
		}
				set_character_flag = checkersplayer
	}
	option = {
		name = "EVTOPTCLulu.237"
		trigger = {
			any_lover = {
			NOT = { trait = slow }
			NOT = { trait = imbecile }
			prisoner = no
			in_command = no
			reverse_opinion = { who = ROOT value = 25}
			}
		}
		random_lover = {
			limit = { 
			NOT = { trait = slow }
			NOT = { trait = imbecile }
			prisoner = no
			in_command = no
			reverse_opinion = { who = ROOT value = 25}
			}
			set_event_target_as = checkers_partner
				character_event = { id = Lulu.238 tooltip = "EVTTOOLTIPLulu.237" }
				add_character_modifier = {
				name = checkerboard
				duration = 180
				hidden = yes
				}
				set_character_flag = checkerslover
		}
				set_character_flag = checkersplayer
	}
	option = {
		name = "EVTOPTDLulu.237"
		trigger = {
			any_friend = {
			NOT = { trait = slow }
			NOT = { trait = imbecile }
			prisoner = no
			in_command = no
			reverse_opinion = { who = ROOT value = 25}
			}
		}
		random_friend = {
			limit = { 
			NOT = { trait = slow }
			NOT = { trait = imbecile }
			prisoner = no
			in_command = no
			reverse_opinion = { who = ROOT value = 25}
			}
			set_event_target_as = checkers_partner 
				character_event = { id = Lulu.238 tooltip = "EVTTOOLTIPLulu.237" }
				add_character_modifier = {
				name = checkerboard
				duration = 180
				hidden = yes
				}
				set_character_flag = checkersfriend
		}
				set_character_flag = checkersplayer
	}
}

#Checkers
character_event = {
	id = Lulu.238
	desc = "EVTDESCLulu.238"
	picture = "GFX_evt_Lulucheckersboard"
	
	is_triggered_only = yes
		
	option = {
		name = "EVTOPTALulu.238"
		random_list = {
			50 = { #Lose
   				modifier = {
     				factor = 3
      				trait = skilled_tactician
    				}
   				modifier = {
     				factor = 3
      				trait = brilliant_strategist
    				}
   				modifier = {
     				factor = 3
      				trait = genius
    				}
   				modifier = {
     				factor = 2
      				trait = quick
    				}
   				modifier = {
     				factor = 1.5
      				trait = shrewd
    				}
   				modifier = {
     				factor = 2
      				trait = gamer
    				}
   				modifier = {
     				factor = 2
      				trait = strategist
    				}
			FROM = { character_event = { id = Lulu.239 }}
			}
			50 = { #Win
   				modifier = {
     				factor = 3
      				FROM = { trait = skilled_tactician }
    				}
   				modifier = {
     				factor = 3
      				FROM = { trait = brilliant_strategist }
    				}
   				modifier = {
     				factor = 3
      				FROM = { trait = genius }
    				}
   				modifier = {
     				factor = 2
      				FROM = { trait = quick }
    				}
   				modifier = {
     				factor = 1.5
      				FROM = { trait = shrewd }
    				}
   				modifier = {
     				factor = 2
      				FROM = { trait = gamer }
    				}
   				modifier = {
     				factor = 2
      				FROM = { trait = strategist }
    				}
			FROM = { character_event = { id = Lulu.240 }}
			}
		}
	}
}

character_event = {
	id = Lulu.239
	desc = "EVTDESCLulu.239"
	picture = GFX_evt_Lulucheckersboard
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.239"
			opinion = { modifier = opinion_satisfied who = FROM months = 12 }
			reverse_opinion = { modifier = opinion_satisfied who = FROM months = 12 }
	}
}

character_event = {
	id = Lulu.240
	desc = "EVTDESCLulu.240"
	picture = GFX_evt_Lulucheckersboard
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.240"
			opinion = { modifier = opinion_satisfied who = FROM months = 12 }
			reverse_opinion = { modifier = opinion_satisfied who = FROM months = 12 }
	}
}

character_event = {
	id = Lulu.241
	desc = {
	trigger = { has_character_flag = checkersspouse }
	text= "EVTDESCLulu.241A"
	}
	desc = {
	trigger = { has_character_flag = checkerschild }
	text= "EVTDESCLulu.241B"
	}
	desc = {
	trigger = { has_character_flag = checkerslover }
	text= "EVTDESCLulu.241C"
	}
	desc = {
	trigger = { has_character_flag = checkersfriend }
	text= "EVTDESCLulu.241D"
	}
	picture = GFX_evt_Lulucheckersboard
	
	trigger = {
		has_character_modifier = checkerboard
		}

	mean_time_to_happen = { days = 125 } 

	option = {
		name = "EVTOPTALulu.241"
			treasury = -1
			any_courtier = { 
				limit = { has_character_flag = checkersplayer }
				character_event = { id = Lulu.242 }
			} 
	}
}

character_event = {
	id = Lulu.242
	desc = {
	trigger = { FROM = { has_character_flag = checkersspouse }}
	text = "EVTDESCLulu.242A"
	}
	desc = {
	trigger = { FROM = { has_character_flag = checkerschild }}
	text = "EVTDESCLulu.242B"
	}
	desc = {
	trigger = { FROM = { has_character_flag = checkerslover }}
	text = "EVTDESCLulu.242C"
	}
	desc = {
	trigger = { FROM = { has_character_flag = checkersfriend }}
	text = "EVTDESCLulu.242D"
	}
	picture = GFX_evt_Lulucheckersboard
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTALulu.242"
			opinion = { modifier = opinion_grateful who = FROM months = 12 }
			hidden_tooltip = {
			FROM = {
				remove_character_modifier = checkerboard
				}
			}
	}
}
